package com.charger.PromoteOperations.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.charger.common.annotation.Excel;
import com.charger.common.core.domain.BaseEntity;

/**
 * 组团管理对象 usergroup
 * 
 * @author ruoyi
 * @date 2024-11-22
 */

public class Usergroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 团组名称 */
    @Excel(name = "团组名称")
    private String name;

    /** 所属活动团类型 */
    @Excel(name = "所属活动团类型")
    private String type;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 停止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "停止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 参团人数限制 */
    @Excel(name = "参团人数限制")
    private Long limits;

    /** 参团人数 */
    @Excel(name = "参团人数")
    private Long groupPerson;

    /** 逻辑删除 */
    private Long del;

    @TableField(exist = false)
    private List<Rulesparticipation> rulesparticipations;

    public Usergroup() {
    }

    public List<Rulesparticipation> getRulesparticipations() {
        return rulesparticipations;
    }

    public void setRulesparticipations(List<Rulesparticipation> rulesparticipations) {
        this.rulesparticipations = rulesparticipations;
    }

    public Usergroup(Long id, String name, String type, Date startTime, Date endTime, Long limits, Long groupPerson, Long del, List<Rulesparticipation> rulesparticipations) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.startTime = startTime;
        this.endTime = endTime;
        this.limits = limits;
        this.groupPerson = groupPerson;
        this.del = del;
        this.rulesparticipations = rulesparticipations;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setLimits(Long limits) 
    {
        this.limits = limits;
    }

    public Long getLimits() 
    {
        return limits;
    }
    public void setGroupPerson(Long groupPerson) 
    {
        this.groupPerson = groupPerson;
    }

    public Long getGroupPerson() 
    {
        return groupPerson;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("limits", getLimits())
            .append("groupPerson", getGroupPerson())
            .append("del", getDel())
            .toString();
    }
}
